home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Toolbox / OtherResInfo-MungeDeamon / OtherResInfo.protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-22  |  3.1 KB  |  86 lines  |  [TEXT/MPS ]

  1. /* prototypes for this application */
  2. #ifndef __ORIPROTOS__
  3. #define __ORIPROTOS__
  4. /* prototypes for this file */
  5.  
  6. void AddWindowID(WindowPtr theWindow);
  7. void AdjustMenus(void);
  8. void InitalizeApp(void);
  9. void DoDiskEvents(long dinfo);      /* hi word is error code, lo word is drive number */
  10. void DrawMain(WindowPtr drawIt);
  11. Boolean DoSelected(long val);
  12. void SizeMain(WindowPtr theWindow);
  13. void InitAEStuff(void);
  14. void DoHighLevel(EventRecord *AERecord);
  15. void DoDaCall(MenuHandle themenu, long theit);
  16. void DoDocumentClick(WindowPtr theWindow);
  17. Boolean IsMyWindow(WindowPtr theWind);
  18. OSErr FindAProcess(OSType creatorToFind, ProcessSerialNumberPtr processSN);
  19. OSErr FindOrLaunchAProcess(OSType theSig, AEDesc *theAddress);
  20. pascal OSErr AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  21. pascal OSErr AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  22. pascal OSErr AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  23. pascal OSErr AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  24. pascal OSErr AEAnswerHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  25. WindowPtr FindWindowByID(unsigned long askedID);
  26. pascal Boolean CommonIdleFunction(EventRecord *whatEvent, long *sleeping, RgnHandle *mouseRgn);
  27. void SampleHelpDialog(void);
  28. void ReDrawGridLines(WindowPtr theWindow, ListHandle theList);
  29. WindowPtr AddNewWindow(short theID);
  30. void CloseTheWindow(WindowPtr theWindow);
  31. ControlHandle SnatchHandle(DialogPtr thebox, short theGetItem);
  32. Boolean IsEditKey(char theKey, short modifiers);
  33. short HasSelectionRange(DialogPeek inputDialog);
  34. pascal Boolean filterIt(DialogPtr inputDialog, EventRecord *myDialogEvent, short *theDialogItem);
  35. Boolean TabRetEsc(DialogPtr inputDialog, EventRecord *myDialogEvent, short *theDialogItem);
  36. pascal Boolean standardAlertFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit);
  37. pascal Boolean standardDialogFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit);
  38. void GetAResourceType(WindowPtr theWindow);
  39. void SendInfoEvent(ResType theType, Boolean quit, WindowPtr theWindow);
  40. void SayError(long longErr);
  41. void ActivateMain(WindowPtr theWindow,Boolean activate);
  42.  
  43. void NilProc(void);
  44.  
  45.  
  46.  
  47. /* These are the new Dialog Manager calls described in Tech note #304 */
  48. /* ONLY used if System 7 or later, of course */
  49. pascal OSErr GetStdFilterProc(ModalFilterProcPtr *theProc) = 
  50. {
  51.     0x303C, 0x0203, 0xAA68
  52. };
  53.  
  54.  
  55.  
  56.  
  57. /* Indicates to the dialog manager which item is default.  Will then alias the return key */
  58. /* to this item, and also bold border it for you (yaaaaa!) */
  59. pascal OSErr SetDialogDefaultItem(DialogPtr theDialog, short newItem)
  60. {
  61.     0x303C, 0x0304, 0xAA68
  62. };
  63.  
  64.  
  65.  
  66.  
  67. /* Indicates which item should be aliased to escape or Command - . */
  68. pascal OSErr SetDialogCancelItem(DialogPtr theDialog, short newItem)
  69. {
  70.     0x303C, 0x0305, 0xAA68
  71. };
  72.  
  73.  
  74.  
  75.  
  76. /* Tells the dialog manager that there is an edit line in this dialog, and */
  77. /* it should track and change to an I-Beam cursor when over the edit line */
  78. pascal OSErr SetDialogTracksCursor(DialogPtr theDialog, Boolean tracks) = 
  79. {
  80.     0x303C, 0x0306, 0xAA68
  81. };
  82.  
  83.  
  84. #endif /* included */